// 数据拼接
function addHtml(data) {
	var html = '';
	if (data.list.length <= 0) {
		$('.ui_loadmore_text').html('<span>没有更多了</span>');
	} else {
		for (var i = 0; i < data.list.length; i++) {
			var tradeMode = data.list[i].tradeMode;
			var transType = data.list[i].transType;
			if(tradeMode=='ADD'){
				tradeMode = '转入';
			}else if (tradeMode=='SUBTRACT') {
				tradeMode = '转出';
			}else if (tradeMode=='FREEZE') {
				tradeMode = '冻结';
			}else if (tradeMode=='UNFREEZE') {
				tradeMode = '解冻';
			}
			if (transType =='IMPREST') {
				transType = '充值';
			} else if(transType =='IMPREST_FEE') {
				transType = '充值手续费';
			} else if(transType =='DRAW') {
				transType = '提现';
			} else if(transType =='DRAW_FEE') {
				transType = '提现手续费';
			}else if(transType =='TRANSFER') {
				transType = '转账';
			}else if(transType =='INVEST') {
				transType = '投标';
			}else if(transType =='CANCLE') {
				transType = '撤标';
			}else if(transType =='LOAN') {
				transType = '标的放款';
			}else if(transType =='LOAN_FEE') {
				transType = '标的放款手续费';
			}else if(transType =='LOAN_GUAR') {
				transType = '标的放款保证金';
			}else if(transType =='ADDMONEY') {
				transType = '附加利息';
			}else if(transType =='REPAYMENT') {
				transType = '标的还款';
			}else if(transType =='ADVANCEREPAY') {
				transType = '垫付还款';
			}else if(transType =='PAYBACK') {
				transType = '用户偿还垫付';
			}else if(transType =='CREDITASSIGN') {
				transType = '债权转让';
			}else if(transType =='CREDITASSIGN_FEE') {
				transType = '债权转让手续费';
			}else if(transType =='INVEST_REBATE') {
				transType = '投资返利';
			}else if(transType =='VIP_ADDRATE') {
				transType = '会员等级加息';
			}else if(transType =='INVEST_REDPACKET_BACK') {
				transType = '投资使用红包';
			}else if(transType =='PENALTY') {
				transType = '逾期罚息';
			}else if(transType =='OTHER') {
				transType = '其他';
			}
			var createTime = null;
			if (data.list[i].createTime == null) {
				createTime = '';
			} else {
				createTime = new Date(data.list[i].createTime)
						.format("yyyy-MM-dd hh:mm:ss");
			}
			html += '<div class="tab_con">';
			html += '<dl class="ui_con_jl">';
			html += '<dt>';
	        html += '    <p class="f15">' + tradeMode + '</p>';
	        html += '    <p class="gray_v1">' + transType + '</p>';
	        html += '</dt>';
	        html += '<dd>';
	        html += '    <div class="ui_middle">';
	        
	        if(data.list[i].money < 0) {
	            html += '    <p class="green_v1 f15">' + (data.list[i].money * 1/100).toFixed(2) + '元</p>';
	        } else {
	            html += '    <p class="red_v1 f15">+' + (data.list[i].money * 1/100).toFixed(2) + '元</p>';
	        }
	        html += '        <p class="gray_v1">' + createTime + '</p>';
	        html += '    </div>';
	        html += '</dd>';
	        html += '</dl>';
			html += '</div>';
		}
		$('.ui_loadmore_text').html('<a href="javascript:void(0);" class="more">点击加载更多</a>');
	}
	$('#list_more').append(html);
}
